package org.mm.service;

import java.util.List;

import org.mm.model.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * UserService
 * @version $Revision: $ $Date: $ $Author: $
 *
 * @author Marco Traversari
 */
public interface UserService {

	public User findByUserNameAndUserPassword(String userName, String userPassword) throws Exception;

	public User findByUserName(String userName) throws Exception;

	public List<User> findAll() throws Exception;

	public User findById(Integer id) throws Exception;

	public User save(User user) throws Exception;

	public Page<User> findAllByPage(Pageable pageable) throws Exception;

	public void delete(User user) throws Exception;

	public Page<User> search(User user) throws Exception;
}
